]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
StImText: don't translate keyboard state again
authorGiovanni Campagna <gcampagna@src.gnome.org>
Sun, 3 Feb 2013 15:43:54 +0000 (16:43 +0100)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Sun, 3 Feb 2013 15:45:28 +0000 (16:45 +0100)
Clutter translates keyboard state internally, and clears the lock bits
from modifier state, so translating again results in the wrong keysym.
Given that Clutter already gives us a fine keysym, we don't need this.

https://bugzilla.gnome.org/show_bug.cgi?id=692586

src/st/st-im-text.c

index 6419c6661a60d1cc692514364bb345a50d5fb459..9f542ab374879b8909f555e0e66c7743b9d9042b 100644 (file)
@@ -316,10 +316,6 @@ key_event_to_gdk (ClutterKeyEvent *event_clutter)
    * doesn't support XKB; we'll just end up with group == 0 */
   event_gdk->group = XkbGroupForCoreState (event_gdk->state);
 
-  gdk_keymap_translate_keyboard_state (keymap, event_gdk->hardware_keycode,
-                                       event_gdk->state, event_gdk->group,
-                                       &event_gdk->keyval, NULL, NULL, NULL);
-
   if (event_clutter->unicode_value)
     {
       /* This is not particularly close to what GDK does - event_gdk->string